//
//  NetworkContainer.h
//  kismet-frontend
//
//  Created by L. Preston Sego III on 7/28/09.
//  Copyright 2009 Precognition Inc.. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "Network.h"
#import "Constants.h"

typedef struct NetworkEntry {
    unsigned char ID[6];
    bool changed;
    Network* net;
    
} NetworkEntry;

@interface NetworkData : NSObject {
    NSMutableDictionary *networkTable;
    Network *currentNetwork;
    
    int numOfNetworks;
    unsigned int _sortedCount;
    
    NetworkEntry _idList[MAX_NETWORKS + 1];
    unsigned int _sortedList[MAX_NETWORKS + 1];
}

- (int)numberOfNetworks;
- (void)addNetworkOrUpdate:(NSString *)serverOutput;
- (void)deleteNetwork:(NSString *)bssid;
- (Network *)netAtIndex:(unsigned int)index;
- (unsigned int) nextChangedRow:(unsigned int)lastRow;



@end
